package com.oa.common.enums;

import com.oa.common.interfaces.CodeStatus;

/**
 * @name 公文的状态
 * @author Yang
 * @date 2018-07-11
 * @version 1.0.1
 */
public enum AppsStatus implements CodeStatus {

    /** 正常 **/
    NORMAL(0,"正常"),

    /** 撤销 **/
    REVOCATION(1,"撤销")
    ;

    private int code;

    private String message;

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public void setMessage(String message) {
        this.message= message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public void setCode(int code) {
        this.code= code;
    }

    /**
     * 初始化函数
     * @param code
     * @param message
     */
    AppsStatus(int code,String message){
        this.code= code;
        this.message= message;
    }
}
